import { getTokenApi } from "@/http/api_hd";
import { useMain } from "@/store/index";


export const get_token = () => {
  const useMainStore = useMain();
  let params = {
    userNameOrPhone: "18879684663", //账户名
    password: "Yunwei123@", //密码
  }
  getTokenApi(params).then((res: any) => {
    if (res && res.token) {
      useMainStore.updatedAuthTokenHd(res.token);
    }
  })
}